//package com.kuang.lock;
//
//import org.apache.curator.RetryPolicy;
//import org.apache.curator.framework.CuratorFramework;
//import org.apache.curator.framework.CuratorFrameworkFactory;
//import org.apache.curator.retry.ExponentialBackoffRetry;
//import org.redisson.Redisson;
//import org.redisson.api.RedissonClient;
//import org.redisson.config.Config;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class RedissonClientConfig {
//
//    @Bean
//    public RedissonClient createRedissonClient() {
//        Config client = new Config();
//        client.useSingleServer().setAddress("redis://139.224.164.101:6379").setPassword("mkxiaoer1986.");
//        return Redisson.create(client);
//    }
//}
